#include "GameObject.h"
#include "Arena.h"

GameObject::GameObject(GameRectangle & arene):DrawableObject(),_arene(arene)
{
}

GameObject::~GameObject()
{
}
int GameObject::Collision(DrawableObject *ob)
{
	Arena *arena = dynamic_cast<Arena*>(ob);
	if(arena==NULL)
		return ob->Englobant().collisionRectExt(Englobant());
	return ob->Englobant().collisionRectInt(Englobant());
}